// components/shopPop/shopPop.js
Component({
  properties: {
    type: {
      type: String
    },
    show: {
      type: Boolean
    },
    title: {
      type: String
    },
    note: {
      type: String
    },
    buttonText: {
      type: String
    },
    pic: {
      type: String
    }
  },

  data: {

  },

  methods: {
    buttonClick: function(e){
      let myEventDetail = {
        type: this.properties.type
      }
      this.triggerEvent('buttonClick', myEventDetail)
    }
  }
})
